<script setup lang="ts">
import init from '@/utils/load.js'
import touchList from '@/components/JiaRan/touchList'
import welcome from '@/components/JiaRan/welcome'
import watchMouseMove from '@/utils/webEvent/watchMouseMove'

init({
  model: '/live2d/Diana/Diana.model3.json',
  welcome,
  touchList,
  onload() {
    // 监听鼠标移动
    watchMouseMove()
  }
})
</script>

<style lang="scss">
.pio-show {
  left: -1.2em;
  bottom: -0.2em;
  width: 6em;
  height: 6.8em;
  display: none;
  cursor: pointer;
  position: absolute;
  transition: all .3s;
  background: url(./assets/avatar.png) center/contain;
  opacity: 0.7;
}
</style>